package com.arcsoft.myapplication;

public class presenter implements Ipresenter,Model.LoadDataCallback {
    private final Iview iview;
    private  final Model model;

    public presenter(Iview iview) {
        this.iview = iview;
    model=new Model();
    }


    @Override
    public void loadData() {
iview.showLoadingProgress("加载数据中");
model.getData(presenter.this);
    }

    @Override
    public void success(String id) {
iview.showData(id);
    }
}
